package com.health.db.dao.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.user.IUserInfoDao;
import com.health.db.mapper.UserInfoMapper;
import com.health.db.model.UserInfo;
import com.health.db.model.UserInfoExample;

/**
 * 人员名单表
 * @author YC
 *
 */
@Component("userInfoDao")
public class UserInfoDaoImpl extends ServiceInterface implements
		IUserInfoDao {

	@Autowired
	UserInfoMapper userInfoMapper;

	@Override
	public long countByExample(UserInfoExample example) {
		// TODO Auto-generated method stub
		return userInfoMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(UserInfoExample example) {
		// TODO Auto-generated method stub
		return userInfoMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long userId) {
		// TODO Auto-generated method stub
		return userInfoMapper.deleteByPrimaryKey(userId);
	}

	@Override
	public int insert(UserInfo record) {
		// TODO Auto-generated method stub
		return userInfoMapper.insert(record);
	}

	@Override
	public int insertSelective(UserInfo record) {
		// TODO Auto-generated method stub
		return userInfoMapper.insertSelective(record);
	}

	@Override
	public List<UserInfo> selectByExample(UserInfoExample example) {
		// TODO Auto-generated method stub
		return userInfoMapper.selectByExample(example);
	}

	@Override
	public UserInfo selectByPrimaryKey(Long userId) {
		// TODO Auto-generated method stub
		return userInfoMapper.selectByPrimaryKey(userId);
	}

	@Override
	public int updateByPrimaryKeySelective(UserInfo record) {
		// TODO Auto-generated method stub
		return userInfoMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(UserInfo record) {
		// TODO Auto-generated method stub
		return userInfoMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<UserInfo> selectByMobilePhone(String mobilePhone) {
		// TODO Auto-generated method stub
		return userInfoMapper.selectByMobilePhone(mobilePhone);
	}

	@Override
	public List<UserInfo> selectByOpenId(String openId) {
		// TODO Auto-generated method stub
		return userInfoMapper.selectByOpenId(openId);
	}

}
